package server;

import java.util.List;

import dao.CheckInDao;
import pojo.GuestDto;

public class CheckInServer {
	
	public void checkIn(List<GuestDto> list,String manageNum){
		GuestDto gue = list.get(0);
		CheckInDao checkInDao = new CheckInDao();
		
		checkInDao.updatRoom(gue.roomNum);
		
		List<String> personIdList = checkInDao.insertGuest(list);
		
		String orderId = checkInDao.insertOrder(list, manageNum);
		
		checkInDao.insertLive(orderId, personIdList, gue.roomNum);
		
	}

}
